<?php
/* @var $this ItemsController */
/* @var $model Items */

$this->breadcrumbs=array(

	$model->entry->code=>array('entry/view', 'id'=>$model->entry_id),
//$model->container->code=>array('container/view', 'id'=>$model->container_id),
	$model->description,
);




require_once 'Mobile_Detect.php';
	
	

			$detect = new Mobile_Detect;
			
if ($detect->isMobile() ){
?>

<body style="background-image: url( http://i59.tinypic.com/35i0i0z.png )"> </body>


<?php

$this->menu=array(
	array('label'=>'List Items', 'url'=>array('index')),
	array('label'=>'Manage Items', 'url'=>array('admin')),
	//array('label'=>'Show Container', 'url'=>array('container/view', 'id'=>$model->container_id)),
	array('label'=>'Show Entry', 'url'=>array('entry/view', 'id'=>$model->entry_id)),
	
	
	
);

 
 } 
 
 else
 {
 
$this->menu=array(
	array('label'=>'List Items', 'url'=>array('index')),
	//array('label'=>'Create Items', 'url'=>array('create')),
	array('label'=>'Update Items', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Items', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Items', 'url'=>array('admin')),
	//array('label'=>'Show Container', 'url'=>array('container/view', 'id'=>$model->container_id)),
	array('label'=>'Show Entry', 'url'=>array('entry/view', 'id'=>$model->entry_id)),
	
	
	
);
 }
?>

<h1>View Item: <?php echo $model->description; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(		
		//'container_id',
		array('label'=>'Entry', 'value'=>$model->entry->code),
		'description',
		'quantity',
		'cost',
		//'tariff_heading',
		//'tariff_rate',
		'gross_weight',
		'stock_code',
		'packaging',
		'dimension',
	),
)); ?>
